<?php

namespace Product;

return array(
//	'static_salt' => 'aFGQ475SDsdfsaf2342', // I am going to move it to global.php. It should be accessable everywhere
    'controllers' => array(
        'invokables' => array(
            'Product\Controller\Index' => 'Product\Controller\IndexController',
            'Product\Controller\Registration' => 'Product\Controller\RegistrationController',
        //'Product\Controller\Admin' => 'Product\Controller\AdminController',	
        ),
    ),
    'router' => array(
        'routes' => array(
            'product' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/product',
                    'defaults' => array(
                        '__NAMESPACE__' => 'Product\Controller',
                        'controller' => 'Index',
                        'action' => 'index',
                    ),
                ),
                'may_terminate' => true,
                'child_routes' => array(
                    'default' => array(
                        'type' => 'Segment',
                        'options' => array(
                            'route' => '/[:controller[/:action[/:id]]]',
                            'constraints' => array(
                                'controllProducter' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'id' => '[a-zA-Z0-9_-]*',
                            ),
                            'defaults' => array(
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'product' => __DIR__ . '/../view'
        ),
        'display_exceptions' => true,
    ),
        /* 'service_manager' => array(
          // added for Productentication and Productorization. Without this each time we have to create a new instance.
          // This code should be moved to a module to allow Doctrine to overwrite it
          'aliases' => array( // !!! aliases not alias
          'Zend\Productentication\ProductenticationService' => 'my_product_service',
          ),
          'invokables' => array(
          'my_product_service' => 'Zend\Productentication\ProductenticationService',
          ),
          ), */
);
